package com.zuxia.entity;

import java.util.HashSet;
import java.util.Set;

import org.apache.struts2.json.annotations.JSON;



public  class Posit implements java.io.Serializable {

	// Fields

	private Integer positId;
	private Depart depart;
	private String positName;
	private Set apply = new HashSet(0);
	private Set recruits = new HashSet(0);
	private Set staffs = new HashSet(0);
	public Integer getPositId() {
		return positId;
	}
	public void setPositId(Integer positId) {
		this.positId = positId;
	}
	@JSON(serialize=false)
	public Depart getDepart() {
		return depart;
	}
	public void setDepart(Depart depart) {
		this.depart = depart;
	}
	public String getPositName() {
		return positName;
	}
	public void setPositName(String positName) {
		this.positName = positName;
	}
	@JSON(serialize=false)
	public Set getApply() {
		return apply;
	}
	public void setApply(Set apply) {
		this.apply = apply;
	}
	@JSON(serialize=false)
	public Set getRecruits() {
		return recruits;
	}
	public void setRecruits(Set recruits) {
		this.recruits = recruits;
	}
	@JSON(serialize=false)
	public Set getStaffs() {
		return staffs;
	}
	public void setStaffs(Set staffs) {
		this.staffs = staffs;
	}
	public Posit(Integer positId, Depart depart, String positName, Set apply,
			Set recruits, Set staffs) {
		super();
		this.positId = positId;
		this.depart = depart;
		this.positName = positName;
		this.apply = apply;
		this.recruits = recruits;
		this.staffs = staffs;
	}
	public Posit() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Posit [positId=" + positId + ", depart=" + depart + ", positName=" + positName + "]";
	}

}